package com.pactera.madp.cp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pactera.madp.cp.api.entity.employeeWechat.EmployeeTagEntity;
import com.pactera.madp.cp.api.vo.EmployeeTagVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (通讯录)标签(CpWorkEmployeeTag)表数据库访问层
 *
 * @author yushen.qi
 * @since 2021-06-29 10:31:42
 */
public interface EmployeeTagMapper extends BaseMapper<EmployeeTagEntity> {

   List<EmployeeTagVO> labelByUser(@Param(value = "wxExternalUserid")String wxExternalUserid, @Param(value = "wxUserId") String wxUserId,@Param(value = "corpId") Integer corpId);

   List<EmployeeTagVO> changeLabelByUser(@Param(value = "wxExternalUserid")String wxExternalUserid, @Param(value = "wxUserId") String wxUserId,@Param(value = "corpId") Integer corpId);

   Integer  isDistinct(@Param(value = "wxExternalUserid")String wxExternalUserid, @Param(value = "wxUserId") String wxUserId,@Param(value = "tagName")String tagName,@Param(value = "corpId") Integer corpId);

}

